package com.example.springboot.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.format.DateTimeFormatter;
import java.util.Date;

/**
 * @author renPingSheng
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
// 告诉Mybatis-plus，这个类与数据库中的哪张表有关
@TableName(value = "leavestu")
public class LeaveStu {
    @TableField("id")
    private Integer id;
    @TableField("username")
    private String username;
    @TableField("leavedate")
    private String leavedate;
    @TableField("apply")
    private Timestamp apply;
    //private String applystr;
    @TableField("reason")
    private String reason;
    @TableField("isagree")
    private int isagree;
    @TableField("dormbuild_id")
    private int dormbuildid;
    @TableField("dormroom_id")
    private int dormroomid;

}
